package org.dtrd.modules.record.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.dtrd.modules.record.entity.bean.AvgBloodPressure;
import org.dtrd.modules.record.entity.po.DtrdViewRlDailyGroupBloodPressure;
import org.dtrd.modules.record.mapper.DtrdViewRlDailyGroupBloodPressureMapper;
import org.dtrd.modules.record.service.IDtrdViewRlDailyGroupBloodPressureService;
import org.springframework.stereotype.Service;

/**
 * @author 萧
 * @date 2021-12-05 09:30:04
 **/
@Service
@DS("multi-datasource1")
@Slf4j
public class DtrdViewRlDailyGroupBloodPressureServiceImpl extends ServiceImpl<DtrdViewRlDailyGroupBloodPressureMapper, DtrdViewRlDailyGroupBloodPressure> implements IDtrdViewRlDailyGroupBloodPressureService {

    @Override
    public AvgBloodPressure getAvgBloodPresssure(Integer patientId, String startDate, String endDate) {
        return baseMapper.getAvgBloodPresssure(patientId, startDate, endDate);
    }
}
